<!DOCTYPE html>
<html lang="zh-hans">
<head>
    <meta charset="UTF-8">
    <title>学生管理系统</title>
</head>
<script>
function checkCondition() {
}
</script>
<body>
    <center>

        {% include "djangoProject1/menu.html" %}

        <table border="1" width="700">

            <tr>
                <th>name</th>
                <th>age</th>
                <th>college</th>
                <th>major</th>
                <th>grade</th>
                <th>operate</th>
            </tr>
            {%   for s in stu   %}
            <tr>
                <td>{{ s.name }}</td>
                <td>{{ s.age }}</td>
                <td>{{ s.college }}</td>
                <td>{{ s.major }}</td>
                <td>{{ s.grade }}</td>
                <td>
                    <a href="{% url 'edit' s.id %}">修改</a>
                    <a href="{% url 'dele' s.id %}">删除</a>
                </td>
            </tr>
            {% endfor %}
        </table>
    </center>
</body>
</html>
